package com.cdxy.service;

import com.cdxy.enums.KaptchaEnum;

/**
 * @Author: tangy
 * @Date: 2020/2/23 17:02
 */
public interface ISmsService {

    /**
     * 发送短信
     *
     * @param businessCode
     * @param phone
     */
    void sendSms(KaptchaEnum.BusinessCode businessCode, String phone);

    /**
     * 校验短信
     * @param businessCode
     * @param phone
     * @param code
     * @return
     */
    void verifySms(KaptchaEnum.BusinessCode businessCode, String phone, String code);
}
